#ifndef IMPORTDIALOG_H
#define IMPORTDIALOG_H

#include <QDialog>
#include "piocore.h"
#include "importmodule.h"

namespace Ui {
    class ImportDialog;
}

class ImportDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ImportDialog(PioCore * core, ImportModule * module, QString source, QWidget *parent = 0);
    ~ImportDialog();

signals:
    void import(ImportModule * module, QList<int> selection, bool deleteSource, bool ejectMedium);

private slots:
    void loadNextThumbnail();
    void on_buttonImport_pressed();
    void on_buttonCancel_pressed();

private:
    Ui::ImportDialog *ui;
    PioCore * m_core;
    ImportModule * m_module;
    int m_currentThumbnailIndex;
};

#endif // IMPORTDIALOG_H
